# Contributor: Matthias Ahouansou <matthias@ahouansou.cz>
# Maintainer: Matthias Ahouansou <matthias@ahouansou.cz>
pkgname=qt-jdenticon
pkgver=0.3.0
pkgrel=0
pkgdesc="Qt5 / C++14 Port of Jdenticon"
url="https://github.com/Nheko-Reborn/qt-jdenticon"
arch="all"
license="MIT"
makedepends="qt5-qtbase-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/Nheko-Reborn/qt-jdenticon/archive/refs/tags/v$pkgver.tar.gz"
options="!check" # no tests

build() {
	qmake
	make
}

package() {
	make INSTALL_ROOT="$pkgdir" install

	install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
}

sha512sums="
a3477ce8fd26de563c1397a07895dcd0ec8210c62fe82e808a8c322c298111c48570ce23df639d648d86a0627b455dc7d1772e985197351251d49abd461b8c23  qt-jdenticon-0.3.0.tar.gz
"
